package com.dd.cloud.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zk
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "角色菜单关联表")
public class RoleToMenu {

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 角色id
     */
    @Column(comment = "角色id")
    private Integer roleId;

    /**
     * 菜单id
     */
    @Column(comment = "菜单id")
    private Integer menuId;

    /**
     * 状态 1正常 -1删除
     */
    @Column(type= MySqlTypeConstant.TINYINT, comment = "状态 1正常 -1删除")
    private Integer status;
}
